/**
 * Created by li on 2017/8/20.
 */
function myFunction()
{
   //lert("myFunction");
    document.getElementById("demo").innerHTML="我的第一个 JavaScript 函数";
}


function reduceArrayApl()
{
    var theArray = [[1,2,3,4,5],[6,7,8,9,10]];
    console.log(theArray);
    var res = theArray.reduce(function (resArray,p) {
        return resArray.concat(p);
    });

    return res;
}


